package com.dr.cmdb.query.neo4jdao.relation;


import com.dr.cmdb.query.neo4jdao.base.BaseEntity;
import com.dr.cmdb.query.neo4jdao.entity.CiTypeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.SuperBuilder;
import org.neo4j.ogm.annotation.EndNode;
import org.neo4j.ogm.annotation.RelationshipEntity;
import org.neo4j.ogm.annotation.StartNode;

/**
 * @ProjectName: cmdb
 * @Package: com.dr.cmdb.application.neo4jdao
 * @Description: java类作用描述
 * @Author: duanrui
 * @CreateDate: 2021/4/2 15:10
 * @Version: 1.0
 * <p>
 * Copyright: Copyright (c) 2021
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@RelationshipEntity(type = "connect")
public class CiTypeAssociation extends BaseEntity {

    private String sourceTarget;

    private String targetSource;

    /**
     * ci模型
     */
    @StartNode
    private CiTypeEntity source;

    /**
     *关系的另一端节点是
     */
    @EndNode
    private CiTypeEntity target;
}
